package com.hao.wms.service;

import com.hao.wms.domain.Depot;
import com.hao.wms.domain.Product;
import com.hao.wms.domain.ProductStock;
import com.hao.wms.query.PageResult;
import com.hao.wms.query.QueryObject;

import java.math.BigDecimal;
import java.util.List;

public interface IProductStockService {
	void save(ProductStock productStock);

	void update(ProductStock productStock);

	void delete(ProductStock productStock);

	ProductStock get(Long id);

	List<ProductStock> list();
	
	PageResult query(QueryObject qo);

    void income(Depot depot, Product product, BigDecimal number, BigDecimal costPrice);

	void outcome(Depot depot, Product product, BigDecimal number);
}
